home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2000 #5 / Amiga Plus CD - 2000 - No. 5.iso / Tools / Dev / fpc / source / docs / refex / ex92.pp < prev    next >
Encoding:
Text File  |  2000-01-01  |  389 b   |  19 lines

  1. Program Example92;
  2.  
  3. { Program to demonstrate the GetResourceStringName function. }
  4. {$Mode Delphi}
  5.  
  6. ResourceString
  7.  
  8.   First  = 'First string';
  9.   Second = 'Second String';
  10.  
  11. Var I,J : Longint;
  12.  
  13. begin
  14.   { Print names of all resourcestrings }
  15.   For I:=0 to ResourceStringTableCount-1 do
  16.     For J:=0 to ResourceStringCount(i)-1 do
  17.       Writeln (I,',',J,' : ',GetResourceStringName(I,J));
  18. end.
  19.